package cn.yunhe.dao;

import cn.yunhe.entity.News;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface NewsMapper2 {
    List<News> getAllNews();
    News getNewsById(int id);

    List<News> getNewsByKeyword(String keyword);

    List<News> getNewsByIds(int[] ids);

    List<News> getNewsByIdsAndTitle(Map map);

    List<News> getNewsByTitleAndContext(News news);

    List<News> testManyToOne();

    List<News> daYu(int number);
}
